import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


import bannerStore from '@/store/modules/bannerStore'
import rankStore from '@/store/modules/rankStore'
import promoteStore from '@/store/modules/promoteStore'
import liveStore from '@/store/modules/liveStore'
import contentStore from '@/store/modules/contentStore'
import videoStore from '@/store/modules/videoStore'

const state = {
	requesting: false,
	error: {}
}

const getters = {
	requesting: state => state.requesting,
	error: state => state.error
}

export default new Vuex.Store({
	state,
	getters,
	modules: {
		bannerStore,
		rankStore,
		promoteStore,
		liveStore,
		contentStore,
    videoStore
	}
})
